{smcl}
{right:version 1.0}
{title:Title}

{phang}
{cmd:pkgzip} {hline 2} install Stata packages from zipfiles or pkgfiles in directory
 

{title:Syntax}

{p 8 16 2}
{cmd: pkgzip} {cmd:,}  {it:from(directory/zipfile|directory/pkgfile)}  [ replace force]
{p_end}


{title:Options}

{p 4 4 2}

{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}

{synopt:{opt replace}}specifies that the downloaded files replace existing 
files if any of the files already exists.{p_end}

{synopt:{opt force}}specifies that the downloaded files replace existing 
files if any of the files already exists, even if Stata thinks all the files 
are the same.  force implies replace.{p_end}

{synopt:{opt from}}specifies the directory/zipfile or directory/pkgfile to be installed.{p_end} 

{synoptline}
{p2colreset}{...}



{title:Example(s)}

{p 4 4 2}

    . pkgzip, from(C:\arlionn-gtfpch-master.zip)

    . pkgzip, from(C:\gtfpch\gtfpch.pkg)
		

{title:Stata User Menu}
   
{p 4 4 2} 

  pkgzip can be used in Stata user mennu after adding the following commands into profile.do 

  window menu clear
  window menu append submenu "stUser" "InstallPakcage" 
  window menu append item "InstallPakcage" "InstallPakcage" "db pkgzip"
  window menu refresh

  Note: If profile.do is absent, you can create it in the root directory of StataMP.exe or StataSE.exe.




{title:Author}

{p 4 4 2}
Kerry Du     {break}
Xiamen University      {break}
Email:kerrydu@xmu.edu.cn     {break}
